#!/usr/bin/env bash
################################################################################
# cigs - readout ~/.cig file to stdout or file                                 #
#        for use in conjunction with the program 'cig'                         #
#                                                                              #
# @author    David Christian Liedle <david.liedle@gmail.com>                   #
# @copyright Copyright (c) 2009-2011 David Christian Liedle                    #
# @license   MIT Open Source License / CC-BY 3.0                               #
#             http://www.opensource.org/licenses/mit-license.php               #
#              http://creativecommons.org/licenses/by/3.0/                     #
#                                                                              #
#  Released as part of The CLIMAX/Candy Suite: http://climax.googlecode.com/   #
#                                                                              #
################################################################################

if [ -f ~/.cig ]; then
    # do appropriate readout
    cat -n ~/.cig | tail -n 20
else
    echo "cigs - view ~/.cig reports"
    echo "NOTE: file ~/.cig does not yet exist... Run 'cig' to create it and begin tracking."
fi
